Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for NixOS #130

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Support for NixOS #130

merged 1 commit into from
Aug 9, 2024

Conversation

mookums
Copy link
Member

@mookums mookums commented Aug 2, 2024

Add flake.nix, shell.nix and nix/package.nix for a Nix development shell and packaging.

It's nice to have when working on a Nix system.

@mookums mookums requested a review from markasoftware August 2, 2024 10:48
valgrind
man
groff
imagemagick
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have imagemagick, graphviz, clang-tools, and bear in here? I realize they may be useful for debugging LOST, does nix have a more idiomatic way of saying "create a development shell for this project, except also install these packages" rather than hardcoding potentially-useful dependencies into this flake file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all do go into the devShell. The actual binary is built using the nix/package.nix where we define nativeBuildInputs (dependencies for building) and buildInputs (runtime dependencies).

Copy link
Member

@markasoftware markasoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know very little about nix or flake but lgtm

@mookums mookums merged commit 2d94a69 into UWCubeSat:master Aug 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants